package huang.jan06;

public class Person {
		//在教室里面有6个人
	
		//分析大家的差异性：性别，年龄，身高，体重，性格，爱好；指纹（唯一）
		  public Person(){
			System.out.println("这是我们自己写的构造方法");
		}
		  Person(String finger_print){
			  this.finger_print=finger_print;
			  System.out.println("这个人的指纹是："+finger_print);
		  }
		char sex;
		short age;
		float heigh;
		double weigh;
		char hair;
		String style;
		String hobby;
		String finger_print;
		String say;
		
		
		//分析动态的功能：敲代码、说话、吃饭、做饭、买菜、睡觉；
		
		
		//方法格式：返回数据类型 方法名(输入参数的类型 输入参数的名字 。。。){//return 返回值}
		
		public String getSay() {
			return say;
		}
		public void setSay(String say) {
			this.say = say;
			System.out.println(say);
		}
		public char getSex() {
			return sex;
			
		}
		public void setSex(char sex) {
			this.sex = sex;
		}
		public short getAge() {
			return age;
		}
		public void setAge(short age) {
			this.age = age;
		}
		public float getHeigh() {
			return heigh;
		}
		public void setHeigh(float heigh) {
			this.heigh = heigh;
		}
		public double getWeigh() {
			return weigh;
		}
		public void setWeigh(double weigh) {
			this.weigh = weigh;
		}
		public char getHair() {
			return hair;
		}
		public void setHair(char hair) {
			this.hair = hair;
		}
		public String getStyle() {
			return style;
		}
		public void setStyle(String style) {
			this.style = style;
		}
		public String getHobby() {
			return hobby;
		}
		public void setHobby(String hobby) {
			this.hobby = hobby;
		}
		public String getFinger_print() {
			return finger_print;
		}
		public void setFinger_print(String finger_print) {
			this.finger_print = finger_print;
		}
		String coding(String computer){
			return "一段代码";
		}
		void say(String content){
			System.out.println("说了"+content);
		}
}
